#include<stdio.h>
static int xb(int a,int b)
{
	int i = 0;
	for(i=a;i<=a*b;i++)
	{
		if(i%a==0&&i%b==0)
		{
			return i;
		}
	}
}
int main()
{
	int m = 0, n = 0;
	scanf_s("%d%d", &m, &n);
	printf("%d", xb(m, n));
	return 0;
}